package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HynfjfdkMapper;
import com.ruoyi.system.domain.Hynfjfdk;
import com.ruoyi.system.service.IHynfjfdkService;
import com.ruoyi.common.support.Convert;

/**
 * 会员年费积分抵扣 服务层实现
 * 
 * @author ruoyi
 * @date 2019-07-16
 */
@Service
public class HynfjfdkServiceImpl implements IHynfjfdkService 
{
	@Autowired
	private HynfjfdkMapper hynfjfdkMapper;

	/**
     * 查询会员年费积分抵扣信息
     * 
     * @param hynfjfdkId 会员年费积分抵扣ID
     * @return 会员年费积分抵扣信息
     */
    @Override
	public Hynfjfdk selectHynfjfdkById(Integer hynfjfdkId)
	{
	    return hynfjfdkMapper.selectHynfjfdkById(hynfjfdkId);
	}
	
	/**
     * 查询会员年费积分抵扣列表
     * 
     * @param hynfjfdk 会员年费积分抵扣信息
     * @return 会员年费积分抵扣集合
     */
	@Override
	public List<Hynfjfdk> selectHynfjfdkList(Hynfjfdk hynfjfdk)
	{
	    return hynfjfdkMapper.selectHynfjfdkList(hynfjfdk);
	}
	
    /**
     * 新增会员年费积分抵扣
     * 
     * @param hynfjfdk 会员年费积分抵扣信息
     * @return 结果
     */
	@Override
	public int insertHynfjfdk(Hynfjfdk hynfjfdk)
	{
	    return hynfjfdkMapper.insertHynfjfdk(hynfjfdk);
	}
	
	/**
     * 修改会员年费积分抵扣
     * 
     * @param hynfjfdk 会员年费积分抵扣信息
     * @return 结果
     */
	@Override
	public int updateHynfjfdk(Hynfjfdk hynfjfdk)
	{
	    return hynfjfdkMapper.updateHynfjfdk(hynfjfdk);
	}

	/**
     * 删除会员年费积分抵扣对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteHynfjfdkByIds(String ids)
	{
		return hynfjfdkMapper.deleteHynfjfdkByIds(Convert.toStrArray(ids));
	}
	
}
